MemoryDomain

class MemoryDomain : Domain

MemoryDomain represents Memory protocol domain request/response operations and events that can be captured.

This API is marked as experimental in protocol definition and can change in the future.

Functions

description
Link copied to clipboard
fun description(): String
Returns domain description.
events
Link copied to clipboard
fun events(): Flowable<Event>
Returns flowable capturing all domains events.
fun events(filter: Predicate<Event>): Flowable<Event>
Returns flowable capturing all domains events matching predicate.
fun <T : Event> events(eventClass: Class<T>): Flowable<T>
Returns flowable capturing all domain events of a given type.
fun <T : Event> events(eventClass: Class<T>, filter: Predicate<T>): Flowable<T>
Returns flowable capturing all domain events of a given type matching predicate.
forciblyPurgeJavaScriptMemory
Link copied to clipboard
fun forciblyPurgeJavaScriptMemory(): Single<RequestResponseFrame>
Simulate OomIntervention by purging V8 memory.
getAllTimeSamplingProfile
Link copied to clipboard
fun getAllTimeSamplingProfile(): Single<GetAllTimeSamplingProfileResponse>
Retrieve native memory allocations profile collected since renderer process startup.
getBrowserSamplingProfile
Link copied to clipboard
fun getBrowserSamplingProfile(): Single<GetBrowserSamplingProfileResponse>
Retrieve native memory allocations profile collected since browser process startup.
getDependencies
Link copied to clipboard
open fun getDependencies(): List<Domain>
Returns domain dependencies.
getDOMCounters
Link copied to clipboard
fun getDOMCounters(): Single<GetDOMCountersResponse>
getSamplingProfile
Link copied to clipboard
fun getSamplingProfile(): Single<GetSamplingProfileResponse>
Retrieve native memory allocations profile collected since last startSampling call.
name
Link copied to clipboard
fun name(): String
Returns domain name.
prepareForLeakDetection
Link copied to clipboard
fun prepareForLeakDetection(): Single<RequestResponseFrame>
setPressureNotificationsSuppressed
Link copied to clipboard
Enable/disable suppressing memory pressure notifications in all processes.
simulatePressureNotification
Link copied to clipboard
Simulate a memory pressure notification in all processes.
startSampling
Link copied to clipboard
fun startSampling(input: StartSamplingRequest): Single<RequestResponseFrame>
Start collecting native memory profile.
stopSampling
Link copied to clipboard
fun stopSampling(): Single<RequestResponseFrame>
Stop collecting native memory profile.

Sources

jvm source
Link copied to clipboard